home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
lib
/
cdf_exists.pro
< prev
next >
Wrap
Text File
|
1997-07-08
|
1KB
|
64 lines
; $Id: cdf_exists.pro,v 1.3 1997/02/22 02:33:32 ali Exp $
;
;
; Copyright (c) 1992-1997, Research Systems, Inc. All rights reserved.
; Unauthorized reproduction prohibited.
;
;+
; NAME:
; CDF_EXISTS
;
; PURPOSE:
; Test for the existence of the CDF library
;
; CATEGORY:
; File Formats
;
; CALLING SEQUENCE:
; Result = CDF_EXISTS()
;
; INPUTS:
; None.
;
; KEYWORD PARAMETERS:
; None.
;
; OUTPUTS:
; Returns TRUE (1) if the CDF data format library is
; supported. Returns FALSE(0) if it is not.
;
; EXAMPLE:
; IF cdf_exists() EQ 0 THEN Fail,"CDF not supported on this machine"
;
; MODIFICATION HISTORY
; Written by: Joshua Goldstein, 12/8/92
;
;-
; A fake function if libraries don't exist
FUNCTION cdf_inquire,x
return,0
END
;
FUNCTION cdf_exists
; CDF is not available in the IDL Student Edition
;
; NOTE: The LMGR function is undocumented, considered private
; to RSI, and is subject to change or removal from IDL at any
; time without notice.
if (LMGR(/STUDENT) eq 1) then return, 0
on_ioerror, ok
oldquiet= !quiet
!quiet=1
x=cdf_inquire(0)
!quiet=oldquiet
return,0
ok:
!quiet=oldquiet
return,1
END